/**
 * 
 */
package co.fitstart.payment.entity.transaction;

import java.util.Date;

/**
 * 交易记录日志
 * 
 * @author mohanlan
 * @author lute
 */
public class TransactionLog {

    private Long id;
    
    private Long transactionRecordId;
    
    /** 交易记录变更类型 */
    private int operationTypeAsInt;
    
    private Date modifiedTime;
    
    /**
     * default constructor
     */
    public TransactionLog() {
        
    }
    
    /**
     * @param transactionRecord
     * @param operationType
     */
    public TransactionLog(TransactionRecord transactionRecord, OperationType operationType) {
        this.transactionRecordId = transactionRecord.getId();
        this.operationTypeAsInt = operationType.getCode();
        this.modifiedTime = transactionRecord.getLastModifiedTime();
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @return the transactionRecordId
     */
    public Long getTransactionRecordId() {
        return transactionRecordId;
    }

    /**
     * @return the operationTypeAsInt
     */
    public int getOperationTypeAsInt() {
        return operationTypeAsInt;
    }

    /**
     * @return the modifiedTime
     */
    public Date getModifiedTime() {
        return modifiedTime;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param transactionRecordId the transactionRecordId to set
     */
    public void setTransactionRecordId(Long transactionRecordId) {
        this.transactionRecordId = transactionRecordId;
    }

    /**
     * @param operationTypeAsInt the operationTypeAsInt to set
     */
    public void setOperationTypeAsInt(int operationTypeAsInt) {
        this.operationTypeAsInt = operationTypeAsInt;
    }

    /**
     * @param modifiedTime the modifiedTime to set
     */
    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

}
